button: Claim the sequence on multipress::pressed
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 27 May 2014 15:35:36 +0000 (17:35 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 27 May 2014 15:47:12 +0000 (17:47 +0200)
In order to avoid the event from bubbling, as it used to (not) do.

gtk/gtkbutton.c

index 17a1f9d9873934ba052fffaa9f5eecf997f21920..32483b4249aac55715394bf0b6e7de740300ae53 100644 (file)
@@ -598,6 +598,7 @@ multipress_pressed_cb (GtkGestureMultiPress *gesture,
     gtk_widget_grab_focus (widget);
 
   g_signal_emit (button, button_signals[PRESSED], 0);
+  gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
 }
 
 static void